/**
 * 网站基本设置相关js文件
 */

/*$(document).ready(function(){
	var fc = $("#fillchinese");
	$("#fillchinese").mouseover(function(){
		$(".fillchinesetip").css("margin-left", (fc.offsetLeft+20)+"px");
		$(".fillchinesetip").show("slow");
		$("#fillchinese").mouseout(function(){
			$(".fillchinesetip").hide("slow");
		});
	});
})*/

//保存网站基本设置
function SaveBasicSettings(formid, requestUrl) {
	var result = SaveForm(formid, requestUrl);
	if(result == "SaveSuccess"){
		alert("保存网站基本设置成功");
	}else{
		if(result == "TbConfigIsNull"){
			alert("后台没有获取数据");
		}
	}
}


//保存文本内容
function SaveText(formid, opt) {
	var result = SaveForm(formid, "/CMSProject/BasicSettings_SaveContent?opt=" + opt);
	location.reload();
	alert(result);
}

//填充中文内容
function FillChineseContent() {
	var domUtils = UE.getEditor("editor").setContent($("#ZhData").val());
	$("#saveZh").removeAttr("disabled");
	$("#saveEn").attr("disabled", "disabled");
}

//填充英文内容
function FillEnglishContent() {
	var domUtils = UE.getEditor("editor").setContent($("#EnData").val());
	$("#saveEn").removeAttr("disabled");
	$("#saveZh").attr("disabled", "disabled");
}
















